#include "vtor_shell.h"

#ifdef __DEMO_PROJECT__


const VtorShell vtorShellArray[] =
{
	(VtorShellFun)VtorShell_Icon, "icon",
	(VtorShellFun)VtorShell_Help, "help",
	(VtorShellFun)VtorShell_List, "list",
	(VtorShellFun)VtorShell_Int, "int",
	(VtorShellFun)VtorShell_String, "str",
	(VtorShellFun)VtorShell_HexString, "hexstr",
	(VtorShellFun)VtorShell_Void, "void",
	(VtorShellFun)VtorShell_Memory, "mem",
	(VtorShellFun)VtorShell_Call, "call",
	(VtorShellFun)VtorShell_ReadInt32, "readint32",
	(VtorShellFun)VtorShell_WriteInt32, "writeint32",
	(VtorShellFun)VtorShell_ReadMem, "readmem",
	(VtorShellFun)VtorShell_WriteMem, "writemem",
	
	(VtorShellFun)VtorShell_Void, "void",
	(VtorShellFun)VtorShell_Void, "void",
	(VtorShellFun)VtorShell_Void, "void",
	(VtorShellFun)VtorShell_Void, "void",
	(VtorShellFun)VtorShell_Void, "void",
	(VtorShellFun)VtorShell_Void, "void",


	(VtorShellFun)NULL, "",
};


void VtorShell_Init()
{
	VtorShell_shellHeader = vtorShellArray;

}


int32_t VtorShell_PrintString(uint8_t* str)
{
	//return  VtorString_Print(str); // 方式1
	//return  VtorString_ChanPrintBuffer(5, str, strlen((char*)str)); // 方式2
	return VtorString_ChanPrintString(5, str);
	//return  VtorDebugChanPrintf(str); // 直接使用预留好的debug接口
}


#endif


